<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>书籍资源搜索平台</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;
            color: #333;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        header {
            background-color: #4285f4;
            color: white;
            padding: 20px 0;
            text-align: center;
            border-radius: 5px 5px 0 0;
            margin-bottom: 30px;
        }
        h1 {
            margin: 0;
            font-size: 2.5em;
        }
        .search-box {
            background-color: white;
            padding: 30px;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }
        .search-form {
            display: flex;
        }
        #search-input {
            flex: 1;
            padding: 12px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 4px 0 0 4px;
        }
        #search-btn {
            padding: 12px 20px;
            background-color: #4285f4;
            color: white;
            border: none;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            font-size: 16px;
        }
        #search-btn:hover {
            background-color: #3367d6;
        }
        .resources {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        .resource-card {
            background-color: white;
            border-radius: 5px;
            padding: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        .resource-card:hover {
            transform: translateY(-5px);
        }
        .resource-card h3 {
            margin-top: 0;
            color: #4285f4;
        }
        .resource-card p {
            color: #666;
        }
        .visit-btn {
            display: inline-block;
            padding: 8px 15px;
            background-color: #4285f4;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            margin-top: 10px;
        }
        .visit-btn:hover {
            background-color: #3367d6;
        }
        footer {
            text-align: center;
            margin-top: 50px;
            padding: 20px;
            color: #666;
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>书籍资源搜索平台</h1>
            <p>一站式搜索各类电子书资源</p>
        </header>
        
        <div class="search-box">
            <form class="search-form" id="search-form">
                <input type="text" id="search-input" placeholder="输入书名、作者或ISBN...">
                <button type="submit" id="search-btn">搜索</button>
            </form>
        </div>
        
        <h2>热门资源网站</h2>
        <div class="resources">
            <div class="resource-card">
                <h3>BookOS</h3>
                <p>拥有2000万科学文章的电子书资源网站，界面清爽，支持一键下载。</p>
                <a href="http://bookos.org/" class="visit-btn" target="_blank">访问网站</a>
            </div>
            
            <div class="resource-card">
                <h3>Library Genesis</h3>
                <p>著名的外文电子书资源网站，包含大量学术书籍和期刊。</p>
                <a href="http://gen.lib.rus.ec/" class="visit-btn" target="_blank">访问网站</a>
            </div>
            
            <div class="resource-card">
                <h3>书林网</h3>
                <p>中文电子书资源网站，包含各类中文书籍资源。</p>
                <a href="http://www.booksforest.com/" class="visit-btn" target="_blank">访问网站</a>
            </div>
            
            <div class="resource-card">
                <h3>Free-Ebooks</h3>
                <p>提供大量免费电子书资源，包括小说、非小说类书籍等。</p>
                <a href="http://www.free-ebooks.net/" class="visit-btn" target="_blank">访问网站</a>
            </div>
            
            <div class="resource-card">
                <h3>西林街</h3>
                <p>综合性资源搜索网站，可以搜索各类电子书资源。</p>
                <a href="http://www.xilinjie.com/" class="visit-btn" target="_blank">访问网站</a>
            </div>
            
            <div class="resource-card">
                <h3>BookZZ</h3>
                <p>国际知名的电子书资源网站，包含大量外文书籍。</p>
                <a href="http://bookzz.org/" class="visit-btn" target="_blank">访问网站</a>
            </div>
        </div>
    </div>
    
    <footer>
        <p>© 2025 书籍资源搜索平台 - 所有资源链接来自公开网络</p>
    </footer>
    
    <script>
        document.getElementById('search-form').addEventListener('submit', function(e) {
            e.preventDefault();
            const query = document.getElementById('search-input').value.trim();
            if (query) {
                alert('搜索功能需要后端支持，当前为前端演示页面。\n您搜索的内容是: ' + query);
                // 实际应用中这里应该发送搜索请求到后端
            }
        });
    </script>
</body>
</html>